package StudyCode.summary.Basic.stringtokenizer;

import java.util.StringTokenizer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringTokenizerReverse {

	public static void main(String[] args) {
		String src = "Hello World By Java";
		StringTokenizer stringTokenizer = new StringTokenizer(src);
		String result = "";
		while (stringTokenizer.hasMoreTokens()) {
			result = stringTokenizer.nextToken() + " " + result;
		}
		System.out.println("反转前:" + src);
		System.out.println("反转后:" + result);
	}
}
